//
//  UIFont+Conveniently.m
//  app
//
//  Created by 刘华舟 on 15/6/17.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "UIFont+Conveniently.h"
#import "UIDevice+Resolutions.h"

@implementation UIFont (Conveniently)

+ (instancetype)rateFontOfSystemSix:(CGFloat)v sixPlus:(CGFloat)t size:(CGFloat)size{

    switch ([UIDevice screenScaleResolution]) {
        case UIDevice_iPhoneHiResFourSeven:
            return [UIFont systemFontOfSize:size*v];
            break;
        case UIDevice_iPhoneHiResFiveFive:
            return [UIFont systemFontOfSize:size*t];
            break;
        default:
            return [UIFont systemFontOfSize:size];
            break;
    }
}

@end
